from math import *
from string import *
from time import *


class Node:
    def __init__(self, id, dirList, image):
        self.__id = id  # passed in 
        self.__dirList   # passed in 
        self.__visList = [0,0,0,0]
        self.__image = image  # passed in

    def setID(self, id):
        self.__id = id

    def setVisList(self, direction, visited):
        if direction == 'N':
            self.__visList[0] = visited
        elif direction == 'E':
            self.__visList[1] = visited
        elif direction == 'S':
            self.__visList[2] = visited
        elif direction == 'W':
            self.__visList[3] = visited

    def getVisList(self, direction):
        if direction == 'N':
            return self.__visList[0]
        elif direction == 'E':
            return self.__visList[1]
        elif direction == 'S':
            return self.__visList[2]
        elif direction == 'W':
            return self.__visList[3]

    
